CFLAGS=-D_DEBUG -g -O0 -pedantic -std=c99 -Wall -Wextra -Werror
DIRS=-I./libharu/include -L./libharu/src
LIBS=-lhpdf -lm -lz
OUTPUT=harun
OBJFILES=main.o utf8_m.o resume_parse.o unicode_to_pdf.o


all: $(OBJFILES)
	$(CC) $(DIRS) -o $(OUTPUT) $^ $(LIBS)


%.o: %.c
	$(CC) -c $(DIRS) $(CFLAGS) -o $@ $^


clean:
	rm -f *.o $(OUTPUT)
